package net.zhengxinyun.performance.dto;

import net.zhengxinyun.performance.Util.StringUtils;

public class TownRankDTO {
    private String indexName;
    private String townName;
    private String finalScore;
    private String rank;


    public double  getDoubleRate()
    {
        if(StringUtils.isNotBlank(finalScore)||"-".equals(finalScore))
        {
            return  Double.parseDouble(finalScore);
        }

        return 0;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(String finalScore) {
        this.finalScore = finalScore;
    }
}
